package com.shycloud.mido.music.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 热门搜索与历史搜索表
 */
@Data
@TableName(value = "mis_hot_history")
public class MisHotHistory {

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	@TableField(value = "keywords")
	private String keywords;

	@TableField(value = "search_count")
	private Integer searchCount = 0;

	/** 用户ID */
	@TableField(value = "member_id")
	private String memberId;

	/** 1 热门 2 历史 */
	@TableField(value = "type")
	private String type;

	@TableField(value = "create_time")
	private LocalDateTime createTime;

	public static final String COL_ID = "id";

	public static final String COL_MEMBER_ID = "member_id";

	public static final String COL_SEARCH_COUNT = "search_count";

	public static final String COL_KEYWORDS = "keywords";

	public static final String COL_TYPE = "type";

	public static final String COL_CREATE_TIME = "create_time";
}